<?php
class Default_Model_Customers extends Zend_Db_Table {
	protected $_name    = 'customers';
	protected $_primary = 'id';
	protected $_dependentTables = array('Default_Model_OrderTour');
	
	public function getIdByName($name) {
		$db = Zend_Registry::get('connectDb');
		$select = $db->select()
		             ->from('customers', array('id','full_name'))
		             ->where('full_name LIKE ?', '%' . $name . '%', STRING);
		
		$result  = $db->fetchPairs($select);
		return $result;
	}
	
}